import { styled } from '@mui/material'
import TableCell, { tableCellClasses } from '@mui/material/TableCell';

const StyledTableCell = styled(TableCell)(({ theme, iscollapse }) => {
  return ({
    [`&.${tableCellClasses.head}`]: {
      // backgroundColor: theme.palette.common.black,
      backgroundColor: theme.palette.mode === 'dark' ? '#1D2529' : '#007bc1',
      color: theme.palette.common.white,
    },
    [`&.${tableCellClasses.body}`]: {
      fontSize: 14,
      borderBottom: iscollapse ? 'none' : ''
    },
})});

export default StyledTableCell